find . -exec grep -l 'string' {} \; -print 2>/dev/null

Posted by 01010101 on Super User See other posts from Super User or by 01010101
Published on 2010-04-07T02:11:11Z Indexed on 2010/04/08 22:53 UTC
Read the original article Hit count: 264

Filed under:
|
|

it lists all files in "." that contain the string "string" but don't show dirs with permission denied.

What would it be the equivalent of that but squeezing xargs in between?

© Super User or respective owner

Related posts about find

Related posts about grep